//
//  SubjectThreeLightVoiceCell.m
//  CoachsBook
//
//  Created by MaBookPro on 2022/8/24.
//

#import "SubjectThreeLightVoiceCell.h"

@implementation SubjectThreeLightVoiceCell


-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self creatcelllist];
    }
    return self;
}

-(void)creatcelllist{
 
    
    UIView *backV = [[UIView alloc]initWithFrame:CGRectMake(15, 0, APPwidth-30, 65)];
    backV.backgroundColor = rgba(245, 245, 250, 1);
    backV.layer.cornerRadius = 8;
    [self addSubview:backV];

    
    UIImageView *circleimgv = [[UIImageView alloc]initWithFrame:CGRectMake(15, 15, 40, 40)];
    circleimgv.backgroundColor = rgba(22, 120, 255, 1);
    circleimgv.image = [UIImage imageNamed:@""];
    circleimgv.layer.cornerRadius = 40/2;
    circleimgv.userInteractionEnabled = YES;
    [backV addSubview:circleimgv];

//    UIButton *bmBtn = [[UIButton alloc]initWithFrame:CGRectMake(backV.width-100,15, 60, 30)];
//    [bmBtn setTitle:@"播放" forState:0];
//    bmBtn.contentHorizontalAlignment = 0;
//    [bmBtn setBackgroundColor:rgba(22, 120, 255, 1)];
//    [bmBtn setTitleColor:[UIColor whiteColor] forState:0];
//    bmBtn.titleLabel.font = [UIFont systemFontOfSize:13];
//    bmBtn.layer.cornerRadius = 15;
//    [backV addSubview:bmBtn];
    
    UILabel *returnLab = [[UILabel alloc]initWithFrame:CGRectMake(circleimgv.frame.size.width+circleimgv.frame.origin.x+20, 10, 100, 20)];
    returnLab.text = @"关灯";
    returnLab.textColor = rgba(51, 51, 51, 1);
    returnLab.layer.backgroundColor = rgba(245, 245, 250, 1).CGColor;
    returnLab.textAlignment = 0;
    returnLab.layer.cornerRadius = 10;
    returnLab.font = [UIFont boldSystemFontOfSize:14];
    [backV addSubview:returnLab];
    
    UILabel *disLab = [[UILabel alloc]initWithFrame:CGRectMake(circleimgv.frame.size.width+circleimgv.frame.origin.x+20, returnLab.height+returnLab.y+5, backV.width-180, 20)];
    disLab.text = @"夜间在有路灯的道路上行驶";
    disLab.textColor = rgba(153, 153, 153, 1);
    disLab.layer.backgroundColor = rgba(245, 245, 250, 1).CGColor;
    disLab.textAlignment = 0;
    disLab.layer.cornerRadius = 10;
    disLab.font = [UIFont systemFontOfSize:14];
    [backV addSubview:disLab];
    
    
}






- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
